home *** CD-ROM | disk | FTP | other *** search
- on(press){
- if(_root.cardblue1 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardblue1")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardblue2 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardblue2")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardgreen1 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardgreen1")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardgreen2 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardgreen2")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardyellow1 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardyellow1")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardyellow2 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardyellow2")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardpurple1 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardpurple1")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardpurple2 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardpurple2")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardblack1 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardblack1")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardblack2 == 1)
- {
- _root.cardred = 1;
- gotoAndStop("wait");
- play();
- tellTarget("_root.cardblack2")
- {
- gotoAndStop("wait");
- play();
- }
- }
- else if(_root.cardred == 0)
- {
- _root.cardred = 1;
- _root.cardred1 = 1;
- tellTarget("_root.cardred1")
- {
- gotoAndStop("flip");
- play();
- }
- }
- else if(_root.cardred == 1)
- {
- _root.cardred = 2;
- _root.score += 1;
- _root.points += 50;
- tellTarget("_root.cardred1")
- {
- gotoAndStop("flip");
- play();
- }
- }
- }
-